<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class Authhelper extends CI_Model {

    function isLoggedIn() {

        return (bool) $this->session->userdata('username');
    }

    /*function markLogIn() {
        $session_data = array(
            'username' => 'logged_in',
        );
        $this->session->set_userdata($session_data);
    }*/

    function markLogOut() {
        $this->ci->session->unset_userdata('username');
        $this->ci->session->sess_destroy();
    }

}

/* End of file auth.php */
/* Location: ./application/models/auth.php */
